// 根据角色动态生成路由
import { MockMethod } from "vite-plugin-mock";



const txData = {
  "body":{
    "accessToken":"2f98fffc-275d-42e9-a31e-ee589f3f4bd4",
    "machineRecipeIDList":[],
    "productIDList":[
      {
        "referenceKey":"",
        "value":"P60_P0C2.0"
      },
      {
        "referenceKey":"",
        "value":"P60_P1C1.0"
      },
      {
        "referenceKey":"",
        "value":"P60_Raw.0"
      },
      {
        "referenceKey":"",
        "value":"P60_P0C1.0"
      },
      {
        "referenceKey":"",
        "value":"P60_P1C2.0"
      }
    ],
    "subSystemFuncList":[
      {
        "funcIDList":[
          {
            "categoryID":"",
            "functionID":"MENU_LOTASSIGN_01_OTMSQ010",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ODPTW003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_OLOTW046",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_STEPHOLD_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKOUT_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_DURABLESETUP_01_OEQPQ034",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWREASSIGN_01_OINFQ018",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_ORTLW004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SCRAPCANCEL_01_OLOTQ039",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTREASSIGN_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWHISTORY_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OPCSQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTCONTAMINATIONLEVELMODIFY_01_OLOTQ039",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_TRANSPORTJOBHISTORY_01_OTEQQ012",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTHOLD_01_OLOTQ052",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ODOCW002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SHIPCANCEL_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKIN_01_ODRBQ034",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SCRAPCANCEL_01_OLOTQ048",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_DISPOSALANDUNDODISPOSAL_01_ODRBQ034",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"LotQuery_OLOTQ042",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTASSIGN_01_ODRBQ035",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SCRAP_01_ODPTQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKIN_01_OPRCW002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERQUERY_01_ODRBQ047",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ODRBW035",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWPLAN_01_ONPWQ012",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SCRAP_01_OINFQ022",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MOVEINCANCEL_01_OLOTQ038",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OFMCR002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OCJPR002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OEQPW006",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTHOLD_01_OLOTQ027",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREMERGE_01_ODPTQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWREPOSITION_01_OLOTW004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_OBNKW015",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTURESPLIT_01_OLOTQ041",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SPLIT_01_OLOTQ041",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERRELEASE_01_ODRBQ044",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPQUERY_01_OEQPW035",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MOVEIN_01_OPRCQ008",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PODTRANSPORTJOBQUERY_01_OTEQQ013",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERQUERY_01_ODRBW080",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PILOTQUERY_01_OLOTQ027",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OLOTQ007",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SORTERJOBQUERY_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_TERMINATECANCEL_01_OLOTQ034",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CHAMBERBASEQUERY_01_OEQPQ030",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OLOTQ039",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKQUERY_01_ODRBQ035",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTHOLD_01_OINFQ017",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTREMOVE_01_ODRBQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWREASSIGN_01_ODPTQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWPLAN_01_OLOTQ009",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MOVEINCANCEL_01_OEQPQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OFMCW003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MERGE_01_ODRBQ035",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_STOCKHISTORY_01_BUTTON_EXPORTSTOCKHISTORY_01",
            "permission":"W",
            "type":"button"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWREPOSITION_01_ODPTQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTURESPLIT_01_OLOTQ048",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_INUSEEND_01_ONPWW007",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OPMNW001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREREASSIGN_01_OINFQ005",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWLOTSTART_01_OLOTQ052",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWPLAN_01_OLOTQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_TERMINATECANCEL_01_OLOTQ040",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OLOTW046",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKOUT_01_OLOTQ039",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PODTRANSPORTJOBQUERY_01_OEQPQ021",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_HOLDRELEASELV2_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKQUERY_01_ONPWQ004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CONSTRAINT_01_OEQPQ030",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PROCESSRESOURCEPROCESSREPORT_01_OEQPQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_OLOTW044",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FURNACEMONITORRESULT_01_OEQPQ022",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERCATEGORYMAINTENANCE_01_ODRBW056",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OFLWQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ODRBW019",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_POSTPROCESSINGLIST_01_OPOSW005",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTURESPLITMERGELIST_01_OFSMW004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_STEPREPOSITION_01_OLOTQ051",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTATTRIBUTEMODIFY_01_OCONQ005",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"LotQuery_OEQPQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWPLAN_01_OSYSQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_ODISQ004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREHOLDCANCEL_01_OPRCQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERHOLD_01_ODRBQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_RECYCLEEND_01_ODUMW011",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MOVEOUT_01_ONPWQ015",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SETCLEAN_01_ODPTQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPHISTORY_01_OEQPQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OBNKW014",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"LotQuery_OCONQ004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CHAMBERBASEQUERY_01_ERCPW004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREHOLD_01_OLOTQ052",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREREASSIGN_01_OPLNW008",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_POSTPROCESSINGLIST_01_OPOSQ005",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"LotQuery_ORUNW013",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPQUERY_01_OEQPQ034",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OSRTR007",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OLOTW040",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWREPOSITION_01_OLOTQ027",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPALARMHISTORY_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OINFQ018",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_STEPREPOSITION_01_ODPTQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKQUERY_01_OSRTW030",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OLSTQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTASSIGN_01_OLOTQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OEQPQ017",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_DOWNGRADE_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SETUP_01_OEQPQ023",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ORTLW001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BATCHLOTATTRIBUTEMODIFY_01_OCONQ005",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWSPECIALREPOSITION_01_OLOTQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTSAMPLING_01_SLSPW007",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ODRBQ033",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_INUSEEND_01_ONPWQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWLOTSTART_01_OLOTQ038",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MOVEINCANCEL_01_OEQPQ023",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERTRANSPORTJOBQUERY_01_OTEQQ006",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SETUP_01_OTCKW007",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OLOTQ009",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTURESPLITMERGELIST_01_OLOTQ052",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PODTRANSPORTJOBQUERY_01_OTEQQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OLOTW032",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPDISPATCHMODECHANGE_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BASICOPERATION_01_OBNDQ004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_ORCPQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SETUPCANCEL_01_EXPORT-EQPOPERATIONHISTORY-01",
            "permission":"W",
            "type":"button"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIEREXCHANGE_01_OEQPQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKQUERY_01_OBNKW008",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_DURABLESETUP_01_ODRBQ024",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKIN_01_OTCKQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_EQPBASICOPERATION_01_OBNDQ006",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SCRAPCANCEL_01_OSYSQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKOUT_01_OINFQ021",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"LotQuery_OLOTW033",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERQUERY_01_OEQPQ023",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTCONTAMINATIONLEVELMODIFY_01_OLOTQ052",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_LOTHOLD_01_OPRCW002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_MOVEIN_01_OPLNW008",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_OLOTQ041",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_NPWSPECIALREPOSITION_01_OLOTQ049",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERQUERY_01_OLOTQ047",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_DURABLEDATACOLLECTION_01",
            "permission":"W",
            "type":"menu"
          },
          {
            "categoryID":"",
            "functionID":"MENU_SETUP_01_OSYSQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_OCDAQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_ODPTQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREHOLD_01_OLOTQ009",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERQUERY_01_ODUMW003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_FUTUREHOLDCANCEL_01_ODPTQ002",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERQUERY_01_OTEQQ001",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PRODUCTLOTSTART_01_OLOTQ038",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKOUT_01_OSRTQ013",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKOUT_01_OBNKW012",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CARRIERBASICOPERATION_01_OLOTQ020",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_RECYCLEEND_01_ONPWQ003",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_PROCESSSTEPHOLD_01_OLOTQ026",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_INUSEEND_01_ONPWW004",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_BANKOUT_01_OINFQ005",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_CONSTRAINT_01_OCONQ006",
            "permission":"W",
            "type":"interface"
          },
          {
            "categoryID":"",
            "functionID":"MENU_STEPHOLDCANCEL_01",
            "permission":"W",
            "type":"menu"
          }
        ],
        "subSystemID":"OMS"
      }
    ]
  },
  "code":"000000",
  "message":"Success",
  "transactionID":"OACCQ001"
}

const mockUser = {
  admin: {
    username: "admin",
    // 一个用户可能有多个角色
    roles: ["admin"],
    accessToken: "eyJhbGciOiJIUzUxMiJ9.admin",
    refreshToken: "eyJhbGciOiJIUzUxMiJ9.adminRefresh",
    expires: "2023/10/30 00:00:00"
  },
  common: {
    username: "common",
    // 一个用户可能有多个角色
    roles: ["common"],
    accessToken: "eyJhbGciOiJIUzUxMiJ9.common",
    refreshToken: "eyJhbGciOiJIUzUxMiJ9.commonRefresh",
    expires: "2023/10/30 00:00:00"
  },
  test: {
    username: "test",
    // 一个用户可能有多个角色
    roles: ["test"],
    accessToken: "eyJhbGciOiJIUzUxMiJ9.test",
    refreshToken: "eyJhbGciOiJIUzUxMiJ9.testRefresh",
    expires: "2023/10/30 00:00:00",
    systemFuncList: txData.body.subSystemFuncList?.find(t => t.subSystemID == 'OMS')?.funcIDList || []
  }
}

export default [
  {
    url: "/login",
    method: "post",
    response: ({ body }) => {
      if (mockUser[body.username]) {
        return {
          success: true,
          data: mockUser[body.username]
        };
      }
    }
  }
] as MockMethod[];


